<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>

	<button type="button" class="btn btn-primary" onclick="addBrand()">品牌入驻</button>
	<table class="table">
		<tr>
			<th>编号</th>
			<th>名称</th>
			<th>图片</th>
		</tr>
		<c:forEach items="${info.list }" var="brand">

			<tr>
				<td>${brand.id }</td>
				<td>${brand.name }</td>
				<td><img width="50px" height="50px"
					src="/pic/${brand.picPath }"></img></td>
			</tr>
		</c:forEach>
	</table>

	<jsp:include page="/WEB-INF/view/common/pages.jsp"></jsp:include>
</body>

<script type="text/javascript">
	function goPage(pageNum) {
		$("#workArea").load("/brand/list?pageNum=" + pageNum);
	}

	function addBrand() {
		$("#workArea").load("/brand/toAdd");
	}
</script>
</html>